//
//  CDMyMessageCollectionViewCell.m
//  CuriosityDaily3
//
//  Created by panzhi on 16/9/23.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import "CDMyMessageCollectionViewCell.h"
#import "CDMyMessageTableViewController.h"

@interface CDMyMessageCollectionViewCell ()
@property(nonatomic,strong)CDMyMessageTableViewController *vc;


@end

@implementation CDMyMessageCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI{

    //self.contentView.backgroundColor = [UIColor randomColor];
    CDMyMessageTableViewController *tabVC = [[CDMyMessageTableViewController alloc]init];
    self.vc = tabVC;
    [self.contentView addSubview:tabVC.tableView];

    [tabVC.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    
}


@end
